package com.xb.p18_broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class MyReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String info =intent.getStringExtra("msg");
        Log.i(intent.getAction(),info);
        MainActivity.info.setText(info);
    }
}
